﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRegistrarProveedor.aspx.cs" Inherits="Farmacia.net.Compras.Proveedor.frmRegistrarProveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Registrar Proveedor</h2>

<fieldset>
   
    <asp:FormView ID="FormView1" runat="server" BackColor="White" 
        BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        DataSourceID="odsProveedor" GridLines="Horizontal" DefaultMode="Insert">
        <EditItemTemplate>
            <table class="style1">
                <tr>
                    <td>
                        IdProveedor:</td>
                    <td>
                        <asp:TextBox ID="IdProveedorTextBox" runat="server" 
                            Text='<%# Bind("IdProveedor") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ruc:</td>
                    <td>
                        <asp:TextBox ID="RucTextBox" runat="server" Text='<%# Bind("Ruc") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        RazonSocial:</td>
                    <td>
                        <asp:TextBox ID="RazonSocialTextBox" runat="server" 
                            Text='<%# Bind("RazonSocial") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Direccion:</td>
                    <td>
                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                            Text='<%# Bind("Direccion") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Telefono:</td>
                    <td>
                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                            Text='<%# Bind("Telefono") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        PersonaContacto:</td>
                    <td>
                        <asp:TextBox ID="PersonaContactoTextBox" runat="server" 
                            ontextchanged="PersonaContactoTextBox_TextChanged" 
                            Text='<%# Bind("PersonaContacto") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ciudad:</td>
                    <td>
                        <asp:TextBox ID="CiudadTextBox" runat="server" Text='<%# Bind("Ciudad") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td>
                        <asp:TextBox ID="EmailTextBox" runat="server" 
                            ontextchanged="EmailTextBox_TextChanged" Text='<%# Bind("Email") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Movil:
                    </td>
                    <td>
                        <asp:TextBox ID="MovilTextBox" runat="server" Text='<%# Bind("Movil") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Actualizar" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
                    </td>
                </tr>
            </table>
        </EditItemTemplate>
        <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <InsertItemTemplate>
            <table class="style1">
                <tr>
                    <td>
                        IdProveedor:</td>
                    <td>
                        <asp:TextBox ID="IdProveedorTextBox" runat="server" 
                            Text='<%# Bind("IdProveedor") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ruc:</td>
                    <td>
                        <asp:TextBox ID="RucTextBox" runat="server" Text='<%# Bind("Ruc") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        RazonSocial:</td>
                    <td>
                        <asp:TextBox ID="RazonSocialTextBox" runat="server" 
                            Text='<%# Bind("RazonSocial") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Direccion:</td>
                    <td>
                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                            Text='<%# Bind("Direccion") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Telefono:</td>
                    <td>
                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                            Text='<%# Bind("Telefono") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        PersonaContacto:</td>
                    <td>
                        <asp:TextBox ID="PersonaContactoTextBox" runat="server" 
                            ontextchanged="PersonaContactoTextBox_TextChanged" 
                            Text='<%# Bind("PersonaContacto") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ciudad:</td>
                    <td>
                        <asp:TextBox ID="CiudadTextBox" runat="server" Text='<%# Bind("Ciudad") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td>
                        <asp:TextBox ID="EmailTextBox" runat="server" 
                            ontextchanged="EmailTextBox_TextChanged" Text='<%# Bind("Email") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Movil:
                    </td>
                    <td>
                        <asp:TextBox ID="MovilTextBox" runat="server" Text='<%# Bind("Movil") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                            CommandName="Insert" Text="Insertar" />
                        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
                    </td>
                </tr>
            </table>
            <br />
        </InsertItemTemplate>
        <ItemTemplate>
            <table class="style1">
                <tr>
                    <td>
                        IdProveedor:</td>
                    <td>
                        <asp:TextBox ID="IdProveedorTextBox" runat="server" 
                            Text='<%# Bind("IdProveedor") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ruc:</td>
                    <td>
                        <asp:TextBox ID="RucTextBox" runat="server" Text='<%# Bind("Ruc") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        RazonSocial:</td>
                    <td>
                        <asp:TextBox ID="RazonSocialTextBox" runat="server" 
                            Text='<%# Bind("RazonSocial") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Direccion:</td>
                    <td>
                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                            Text='<%# Bind("Direccion") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Telefono:</td>
                    <td>
                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                            Text='<%# Bind("Telefono") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        PersonaContacto:</td>
                    <td>
                        <asp:TextBox ID="PersonaContactoTextBox" runat="server" 
                            ontextchanged="PersonaContactoTextBox_TextChanged" 
                            Text='<%# Bind("PersonaContacto") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ciudad:</td>
                    <td>
                        <asp:TextBox ID="CiudadTextBox" runat="server" Text='<%# Bind("Ciudad") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td>
                        <asp:TextBox ID="EmailTextBox" runat="server" 
                            ontextchanged="EmailTextBox_TextChanged" Text='<%# Bind("Email") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Movil:
                    </td>
                    <td>
                        <asp:TextBox ID="MovilTextBox" runat="server" Text='<%# Bind("Movil") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" 
                            CommandName="Delete" Text="Eliminar" />
                        &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                            CommandName="New" Text="Nuevo" />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
    </asp:FormView>
    <asp:ObjectDataSource ID="odsProveedor" runat="server" 
        DataObjectTypeName="Farmacia.Entities.Proveedor" DeleteMethod="DeleteProveedor" 
        InsertMethod="RegistrarProveedor" SelectMethod="GetFromProveedorById" 
        TypeName="Farmacia.BussinessLogic.ProveedorBL" 
        onobjectcreating="odsProveedor_ObjectCreating" 
        UpdateMethod="RegistrarProveedor">
        <DeleteParameters>
            <asp:Parameter Name="id" Type="Int32" />
        </DeleteParameters>
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="idProveedor" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</fieldset>


</asp:Content>
